package com.castle.fortress.admin.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.cms.dto.CmsArticleSubjectDto;
import com.castle.fortress.admin.cms.entity.CmsArticleSubjectEntity;

import java.util.List;

/**
 * cms内容标签管理表 服务类
 *
 * @author castle
 * @since 2022-03-18
 */
public interface CmsArticleSubjectService extends IService<CmsArticleSubjectEntity> {

    /**
     * 分页展示cms内容标签管理表列表
     * @param page
     * @param cmsArticleSubjectDto
     * @return
     */
    IPage<CmsArticleSubjectDto> pageCmsArticleSubject(Page<CmsArticleSubjectDto> page, CmsArticleSubjectDto cmsArticleSubjectDto);


    /**
     * 展示cms内容标签管理表列表
     * @param cmsArticleSubjectDto
     * @return
     */
    List<CmsArticleSubjectDto> listCmsArticleSubject(CmsArticleSubjectDto cmsArticleSubjectDto);

    void updateArtiSubBatch(List<Long> articleids, List<Long> special);
}
